<ul>


	{navigation as=$vo }

	{if isset($vo.data)}

	<!--有下级的  -->
	<li class="{$vo.static_url}">

		<div class="wholerow">
		</div>
		<i class="icon">
		</i>
		<a href="{$vo.static_url}" class="text">{$vo.name}</a>



		<ul>

			{foreach $vo.data as $svo }

			<li class="{$svo.static_url}">


				{if isset($svo.data)}
				<div class="wholerow">
				</div>
				<i class="icon">
				</i>
				<a href="{@to($vo)}" class="text">{$svo.name}</a>
				<ul>

					{foreach $svo.data as $ssvo }

					<li class="{$ssvo.static_url}">
						<a class="text" href="{@to($ssvo)}">{$ssvo.name}</a>
					</li>
					{/foreach}


				</ul>
				{else}
				<a class="text" href="{@to($svo)}">{$svo.name}</a>



				<ul>

					{content name="list.nav" pid='$svo.id' sort="ASC" begin=0 rows="500" as="$o" }
					<li class="{$o.static_url}">
						<div class="wholerow"></div>
						<i class="icon"></i>
						<a class="text" href="{@jmp($o.static_url)}">{$o.name}</a>
					</li>
					{/content}
				</ul>


				{/if}

			</li>
			{/foreach}


		</ul>
		</div>
	</li>


	{else}
	<!-- 没有栏目下级了 -->

	<li class="{$vo.static_url}">

		{exquery name="{zh.$vo.template}{$vo.name}" table="content" sort="ASC" begin=0 rows="500" where=" pid={$vo.id} " as="$array" }




		<div class="wholerow">
		</div>
		{if $vo.template=='page' or $vo.template=='jmp' }

		<i class="icon">
			{else}
			<i class="icon caret right">
				{/if}
			</i>
			<a class="text" href="{@to($vo)}" title="{$vo.name}">{$vo.name}</a>

			<!--判断有没有文章-->
			{if $array}
			<ul>

				{foreach $array as $v}
				<li class="{$v.static_url}">

					<div class="wholerow"></div>
					<i class="icon"></i>

					<a class="text" href="{@jmp($v.static_url)}">{$v.name}</a>
				</li>
				{/foreach}
			</ul>
			{/if}
	</li>


	{/if}
	{/navigation}



</ul>